import { http } from '@/utils';

export function loginApi(data) {
  return http({
    url: '/authcenter/oauth/token',
    method: 'post',
    params: data,
    ifkey: true,
  });
}

export function getUserInfoApi() {
  return http.get('/authcenter/userInfo');
}
